package com.tuanzi.loan.business.repository.product.product;

import java.util.List;

import com.tuanzi.loan.business.entity.family.ProductInfoStatus;
import com.tuanzi.loan.business.entity.product.product.LoanProductInfo;
import com.tuanzi.loan.business.repository.product.product.custom.LoanProductInfoRepositoryCustom;
import com.tuanzi.loan.core.repository.JPAAuditRepository;

/**
 * @author Ray 2017/09/21
 */
public interface LoanProductInfoRepository extends LoanProductInfoRepositoryCustom, JPAAuditRepository<LoanProductInfo, Long> {

	List<LoanProductInfo> findAllByCompanyId(Long companyId);

	LoanProductInfo findProductInfoByName(String name);

	List<LoanProductInfo> findByStatus(ProductInfoStatus productInfoStatus);

//	List<LoanProductInfo> findAllByAutoOnlineTrue();

}
